package com.skt.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.skt.domain.DTO.request.MerchantOrderQueryRequest;
import com.skt.domain.PO.RentalOrder;
import com.skt.domain.VO.RentalOrderVO;
import com.skt.result.PageResult;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

public interface MerchantOrderService extends IService<RentalOrder> {

    /**
     * 查询商家订单列表
     * @param queryRequest
     * @return
     */
    PageResult<RentalOrderVO> MerchantOrderQueryRequest(@Valid MerchantOrderQueryRequest queryRequest);


    /**
     * 确认发货
     * @param orderId
     */
    void shipOrder(@NotNull(message = "订单ID不能为空") Long orderId);


    /**
     * 确认归还
     * @param orderId
     */
    void returnOrder(@NotNull(message = "订单ID不能为空") Long orderId);
}
